<!DOCTYPE HTML>
<html style="background: #f3f3f3;">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>法援宝</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/lawyer.css" />
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../script/mobile.js"></script>
    <script type="text/javascript" src="../script/lawyer.js"></script>
</head>
<body>
<div id="secHeader">
  <header class="header">
      <a href="javascript:void(0);" onclick="comeBack()" class="back_btn"><img src="../image/head-fanhui.png" alt=""></a>
      <h2>设置</h2>
      <!--<a href="javascript:;" class="tel_btn">保存</a>-->
  </header>
</div>

<section class="setting">
    <ul>
        <li><a href="javascript:;" onclick="aaplay('szzfmm')">设置支付密码</a></li>
        <li><a href="javascript:;" onclick="aaplay('question','question')">常见问题</a></li>
        <li><a href="javascript:;" onclick="aaplay('advice','advice')">意见反馈</a></li>
        <!-- <li><a href="javascript:;" onclick="aaplay('personal_setting_news_user')">消息中心</a></li> -->
        <li><a href="javascript:;" onclick="aaplay('gywm')">关于我们</a></li>
    </ul>
</section>


<section class="calc_btn">
    <a href=javascript:void(0); onclick="logout()">退出登录</a>
</section>

</body>

<script>

    apiready = function(){
      $api.fixStatusBar( $api.dom('#secHeader') );
      api.setStatusBarStyle({
          style: 'light'
      });
    }
    function logout(){
        $api.rmStorage('user');
        $api.clearStorage ();

        api.openWin({
            name: 'login',
            url: 'login.html',
            reload:true,
            pageParam: {

            }
        });
    }


    /**
     *该方法用来返回页面
     *  **/
    function comeBack(){
        api.historyBack({
        },function(ret,err){
            if (!ret.status) {
                api.closeWin();
            }
        });
    }


</script>
</html>
